//package com.info.zhiduoduo.admin.controller;
//
//import com.info.zhiduoduo.admin.model.formbean.crowd.QueryCrowdOfflinePayProjectFormBean;
//import com.info.zhiduoduo.admin.model.formbean.crowd.OfflineConfirmPaymentFormBean;
//import com.info.zhiduoduo.admin.service.CrowdOfflinePayProjectService;
//import com.info.zhiduoduo.common.annotation.LogEntity;
//import com.info.zhiduoduo.common.annotation.LogParameter;
//import com.info.zhiduoduo.common.annotation.ZddLog;
//import com.info.zhiduoduo.common.constants.SmartResult;
//import com.info.zhiduoduo.common.constants.system.ZddLogType;
//import com.info.zhiduoduo.common.formbean.BaseSimpleFormBean;
//import com.info.zhiduoduo.repository.entity.crowdsource.CrowdsourceProjectItem;
//import com.info.zhiduoduo.repository.entity.crowdsource.CrowdsourceTradeRecordItem;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import io.swagger.annotations.ApiParam;
//import org.springframework.web.bind.annotation.*;
//
//import javax.annotation.Resource;
//import javax.servlet.http.HttpServletResponse;
//
//@Api(tags = "智众包线下支付项目接口")
//@RestController
//@RequestMapping("/crowd/offline")
//public class CrowdOfflinePayProjectController {
//
//	@Resource
//    CrowdOfflinePayProjectService crowdOfflinePayProjectService;
//
//    @ApiOperation("查新智众包线下支付项目列表")
//    @PostMapping("/queryCrowdOfflinePayProject")
//    public SmartResult queryCrowdOfflinePayProject(@RequestBody BaseSimpleFormBean<QueryCrowdOfflinePayProjectFormBean> formBean) {
//        return crowdOfflinePayProjectService.queryCrowdOfflinePayProject(formBean);
//    }
//
//    @ZddLog(type = ZddLogType.UPDATE,name = "确认付款",entities = {
//            @LogEntity(entity = CrowdsourceTradeRecordItem.class,parameters = @LogParameter(fields = "id",parameters = "formBean.reqdata.id")),
//            @LogEntity(entity = CrowdsourceProjectItem.class)
//    })
//    @ApiOperation("确认付款")
//    @PostMapping("/confirmPayment")
//    public SmartResult confirmPayment(@RequestBody BaseSimpleFormBean<OfflineConfirmPaymentFormBean> formBean){
//        return crowdOfflinePayProjectService.confirmPayment(formBean);
//    }
//
//    @ApiOperation("获取项目详细付款人员")
//    @PostMapping("/queryDetailedPersonnelById")
//    public SmartResult queryDetailedPersonnelById(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//        return crowdOfflinePayProjectService.queryDetailedPersonnelById(formBean);
//    }
//
//    @ApiOperation(value = "导出项目详细付款信息", tags = "下载excel")
//    @GetMapping("exportOfflinePayProjectById")
//    public void exportOfflinePayProjectById(HttpServletResponse response,
//                                            @ApiParam(name = "projectid", value = "项目ID") @RequestParam(name = "projectid") int projectid){
//        crowdOfflinePayProjectService.exportOfflinePayProjectById(response,projectid);
//    }
//}
